package com.lais.record.user;

import com.lais.record.common.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @Author: luowen
 * @Description: 用户微服务
 * @Date: Create in 21:48 2019/11/29
 */
@SpringBootApplication(scanBasePackages = {"com.lais.record.user","com.lais.record.common.exception"})
@EnableDiscoveryClient
@MapperScan("com.lais.record.user.mapper")
public class UserApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class,args);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker(1,1);
    }
}
